package moxl.parser.assemblers.pi;

import moxl.parser.ParserException;
import moxl.tokenizer.TokenizerException;
import moxl.tokenizer.xml.pibody.ProcessingInstructionBodyStartState;

public class ProcessingInstructionExpectingTargetState extends ProcessingInstructionStateDelegateBase
{
	@Override
	protected void acceptName(ProcessingInstructionAssemblerContext ctx) throws ParserException, TokenizerException
	{
		ctx.setTokenStreamMode(ProcessingInstructionBodyStartState.getInstance());
		ctx.bookmarkToken(ProcessingInstructionBookmark.TARGET);
		ctx.changeState(ProcessingInstructionAssemblerState.ProcessingInstructionExpectingBodyState);
	}
}
